Skip to content

Create a network object

Request

Requires virtual-networks::modify permission.

Security
JWTAuthorizer
Path
networkNamestringrequired

Network name

domainNamestringrequired

Domain name

Bodyapplication/jsonrequired

Network object configuration

namestring

Object name

cidrstring

CIDR this object represents

Example:"1.2.3.0/24"
descriptionstring
networkNamestring

Virtual network this object belongs to

domainNamestring

Domain this object belongs to

orgIdstring

Organization ID

typestring

Object type discriminator

Example:"NetworkObject"
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/domain/{domainName}/network/{networkName}/network-object' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "cidr": "1.2.3.0/24",
    "description": "string",
    "networkName": "string",
    "domainName": "string",
    "orgId": "string",
    "type": "NetworkObject"
  }'

Responses

OK

Response
No content